package com.me.dao.util;

import java.util.Hashtable;

import com.me.dao.base.PeopleModel;
import com.me.dao.entity.DbPeopleModel;
import com.me.dao.entity.LyPeopleModel;
import com.me.dao.entity.MyPeopleModel;

/**
 * 功能：
 *
 * @author：dell
 * @create：2019/2/7 19:47
 * @version：2019 Version：1.0
 * @company：老屋新房 Created with IntelliJ IDEA
 */
public class PeopleCache {
	private static Hashtable<String, MyPeopleModel> peopleMap = new Hashtable<String, MyPeopleModel>();

	public static PeopleModel getPeopleMode(String name){
		MyPeopleModel myPeopleModel = peopleMap.get(name);
		return (MyPeopleModel)myPeopleModel.clone();
	}

	public static void loadPeopleModel(){
		peopleMap.put("刘洋",new LyPeopleModel());
		peopleMap.put("大斌",new DbPeopleModel());
	}
}
